﻿#region

using BTL.OnlineTestingSocial.Services.TestingEngine.Service.DAL;
using BTL.Technology.Framework;

#endregion

namespace BTL.OnlineTestingSocial.Services.TestingEngine.Service.BLL
{
    public class LikeManager : ILikeManager
    {
        private readonly ILikeRepository _likeRepository;

        public LikeManager(ILikeRepository likeRepository)
        {
            _likeRepository = likeRepository;
        }

        #region ILikeManager Members

        public bool InsertComment(bool isDislike, int? questionDetailId, int? questionGroupId, string createBy)
        {
            Guard.MakeSureAllInstancesIsNullNot(_likeRepository);

            return _likeRepository.InsertComment(isDislike, questionDetailId, questionGroupId, createBy);
        }

        #endregion
    }
}